package com.wqiuqiu.gulimall.product.dao;

import com.wqiuqiu.gulimall.product.entity.SkuSaleAttrValueEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wqiuqiu.gulimall.product.vo.AttrNoId;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku销售属性&值
 * 
 * @author wqiuqiu
 * @email 18773489795@163.com
 * @date 2023-11-27 14:08:58
 */
@Mapper
public interface SkuSaleAttrValueDao extends BaseMapper<SkuSaleAttrValueEntity> {

    List<SkuSaleAttrValueEntity> listBySkuIds(@Param("skuIds") List<Long> skuIds);

    List<AttrNoId> getAttrNameAndAttrValueBySkuIds(@Param("skuIds") List<Long> skuIds);

    List<String> getSkuSaleAttrValuesAsStringList(@Param("skuId") Long skuId);
}
